﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddProgram.aspx.cs" Inherits="AB.ServiceDirectory.Design.Programs.AddProgram" %>
<%@ Register tagPrefix="wuc" tagName="ContactLookupPopup" src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
	</script>
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
            <h2>PROGRAM DETAILS</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="grid740 simplebox relative">
        <!-- start tabs codes -->
        <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
            <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
                <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">
                    Details</a></li>
            </ul>
            <span class="top-right-cornor">
                <asp:Button CssClass="st-button" ID="ButtonDeactivate" runat="server" 
                Text='Deactivate' CommandName="active" 
                CausesValidation="False" 
                
                onclientclick="return confirm('Do you want to make this Programme in-active?')" 
                onclick="ButtonDeactivate_Click" />
                <asp:Button CssClass="st-button" ID="ButtonSave" runat="server" Text="Save" 
                onclick="ButtonSave_Click" oncommand="ButtonSave_Click" />
                <asp:Button CssClass="st-button" ID="ButtonBack" runat="server" 
                Text="Back" PostBackUrl="~/Program/ProgramList.aspx" 
                CausesValidation="False"/>
            </span>
            <div class="clear"></div>
            <div id="tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                <div class="simplebox">
                    <div class="st-form-line-noleft">
                        <div class="half">
                        <asp:Label ID="LabelProgramName" CssClass="st-labeltext level1" runat="server" Text="Programme Name"></asp:Label>
                        <asp:TextBox ID="TextBoxName" CssClass="st-forminput" runat="server" 
                            Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredProgramName" runat="server" ErrorMessage="*" ControlToValidate="TextBoxName" ForeColor="red"
                            SetFocusOnError="true" />
                            <asp:Label ID="CheckLabel" runat="server" ForeColor="Maroon"></asp:Label>
                        </div>
                        <div class="half last">
                        <asp:Label ID="LabelContactName" CssClass="st-labeltext level1" runat="server" 
                                Text="Contact"></asp:Label>
                        <asp:TextBox ID="TextBoxManagerName" CssClass="st-forminput st-disable" runat="server" Width="150px"
                                ReadOnly="True"></asp:TextBox>
                        <asp:HiddenField ID="HiddenFieldManagerId" runat="server" />
                        <asp:LinkButton ID="ButtonLookup" runat="server" CausesValidation="False" 
                                onclick="ButtonLookup_Click" CssClass="hg-blue">Lookup</asp:LinkButton>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                    <div class="st-form-line-noleft">
                        <div class="half">
                            <asp:Label ID="LabelDescription" CssClass="st-labeltext level1" runat="server" Text="Description"></asp:Label>
                        <asp:TextBox ID="TextBoxDescription" CssClass="st-forminput" runat="server" 
                            TextMode="MultiLine" Rows="6" Width="200px"></asp:TextBox>
                        </div>
                        <div class="half last">
                            <asp:Label ID="LabelIsActive" CssClass="st-labeltext level1" runat="server" Text="Is Active"></asp:Label>
                            <asp:Literal ID="LiteralIsActive" runat="server" Text='Yes'></asp:Literal>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end tabs codes -->
    </div>
    <wuc:ContactLookupPopup ID="ContactLookupPopup" runat="server" />
</asp:Content>
